class CreateBooks < ActiveRecord::Migration
  def change
    create_table :books ,:force => true do |t|
      t.string :name , :limit => 256,  :null => false 
      t.string :description,  :limit => 1024
      t.string :authour,  :limit => 60
      t.integer :price
      t.string :isbn,  :limit => 45
      t.string :publisher,  :limit => 60
      t.date :publish_date
      t.integer :category_id
      t.string :tag,  :limit => 1024
      t.string :image, :limit => 1024 
      t.timestamps
      
    end
  end
end